package com.kaili.basic.mapper;


import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.kaili.basic.pojo.dto.WarehousingReturnQueryDto;
import com.kaili.basic.pojo.entity.WarehousingReturn;
import com.kaili.basic.pojo.entity.WarehousingReturnExport;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;


/**
 * Created by xxx on 18-4-25.
 */

@Mapper
public interface WarehousingReturnMapper {
    //添加入库退货
    int addWarehousingReturn(WarehousingReturn warehousingReturn);

    //删除入库退货
    int deleteWarehousingReturn(WarehousingReturn warehousingReturn);

    //删除入库退货
    int deleteWarehousingReturns(Map<String, Object> map);

    //修改入库退货
    int updateWarehousingReturn(WarehousingReturn warehousingReturn);

    //条件查询获取入库退货信息
    List<WarehousingReturn> queryWarehousingReturn(Pagination page, WarehousingReturnQueryDto warehousingReturnQueryDto);

    //id查询获取入库退货详细信息
    WarehousingReturn queryWarehousingReturnById(Long returnId);

    //订单号查询获取入库退货详细信息
    WarehousingReturn queryWarehousingReturnByNo(String requestCode);

    //查询当前数据库中的最大id
    Long getMaxReturnId();

    //导出
    List<WarehousingReturnExport> queryWarehousingReturnExport(WarehousingReturnQueryDto warehousingReturnQueryDto);
}
